const state = {
  AttachmentList: [],
  taskId:''
}
const mutations = {
  // 存储实验报告主数据附件列表
  setAttachmentList(state,data) {
    state.AttachmentList.push(data)
  },
  setpaixulist(state, data) {
    state.AttachmentList = state.AttachmentList.filter((item, index, self) => {
      index === self.findIndex(t =>
        t.name === item.name
     )
    }
   );
  },
  settaskod(state,data) {
    state.taskId = data
  }
}
export default {
  state,
  mutations
}